import { createApp } from 'vue'
import { createI18n } from 'vue-i18n'
import App from './App.vue'
import router from './router/Index'
import store from './store/Index'
import '/@/style/index.scss'
import ElementPlus from 'element-plus'
import 'element-plus/lib/theme-chalk/index.css'
import locale from 'element-plus/lib/locale/lang/zh-cn'
import en from './locales/en.json'
import zh from './locales/zh.json'
import ja from './locales/ja.json'

const i18n = createI18n({
  legacy: false,
  locale: 'zh',
  messages: {
    en,
    ja,
    zh
  }
})

const app = createApp(App)
app.use(router)
app.use(store)
app.use(i18n)
app.use(ElementPlus, { locale })
app.mount('#app')
